package w4156.idog.server;

import java.util.List;

import javax.ejb.Remote;

import w4156.idog.model.Card;
import w4156.idog.model.User;

@Remote
public interface TransactionSessionBeanRemote {
	Card bidOp(int userId, double money);

	Card hitOp(int userId);// TODO: Any more ops need to return Card???

	void standOp(int userId);
	
	void surrenderOp(int userId);

	void insert(User user);

	void setCards(CardsBean cards);

	boolean contains(Integer objid);

	int getPlayerNumber();

	List<User> getUsers(int userId);

	void setReady(int userId);

	void setMyTurn();

	List<Card> getCards(int userId);

	boolean isWin();

	void setWin(boolean win);

	Card doubleOp(int userId);

	void setTableUsers(List<UserSessionRemote> tableUsers);

	List<UserSessionRemote> getTableUsers();

	int getCurrent();

	void init();

	void remove();

	boolean isSaved();

	void setSaved(boolean saved);
}
